package com.xlh.support.backup.domain;

import java.io.Serializable;
import java.util.Date;

public class Backup implements Serializable {
    private Long id;

    /**
     * 是否开启自动备份
     *
     * @mbg.generated
     */
    private Boolean autoBackup;

    /**
     * 最新一次备份完成时间
     *
     * @mbg.generated
     */
    private Date latestBackupTime;

    /**
     * 最新一次恢复完成时间
     *
     * @mbg.generated
     */
    private Date latestRecoverTime;

    /**
     * 最新一次恢复文件名
     *
     * @mbg.generated
     */
    private String latestStr;

    private Boolean deleted;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Boolean getAutoBackup() {
        return autoBackup;
    }

    public void setAutoBackup(Boolean autoBackup) {
        this.autoBackup = autoBackup;
    }

    public Date getLatestBackupTime() {
        return latestBackupTime;
    }

    public void setLatestBackupTime(Date latestBackupTime) {
        this.latestBackupTime = latestBackupTime;
    }

    public Date getLatestRecoverTime() {
        return latestRecoverTime;
    }

    public void setLatestRecoverTime(Date latestRecoverTime) {
        this.latestRecoverTime = latestRecoverTime;
    }

    public String getLatestStr() {
        return latestStr;
    }

    public void setLatestStr(String latestStr) {
        this.latestStr = latestStr;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", autoBackup=").append(autoBackup);
        sb.append(", latestBackupTime=").append(latestBackupTime);
        sb.append(", latestRecoverTime=").append(latestRecoverTime);
        sb.append(", latestStr=").append(latestStr);
        sb.append(", deleted=").append(deleted);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}